/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Modele;

import java.util.Collection;

/**
 *
 * @author sio
 */
public class Spe implements Comparable<Spe> {
    private String nom;
    private Collection <Med> lesMeds;
    
    public Spe(String nom,Collection <Med>lesMeds){
        this.nom=nom;
        this.lesMeds=lesMeds;
    }
    
    public String getNom(){
        return this.nom;
    }
    
    public Collection <Med> getLesMeds(){
        return this.lesMeds;
    }
    
    public void addMed(Med m) {
        lesMeds.add(m);
    }

    @Override
    public int compareTo(Spe o) {
       return nom.compareTo(o.nom);
    }
    
}
